<include file="Public/head"/><body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>
            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <div class="row">
						    <div class="col-md-6">
						        <div class="well">
						            <b>结算单总额</b>
						            <div class="text-primary" style="font-size:32px;margin:5px 0">
						                ¥{$all_jiesuan_money}               <span class="text-muted" style="font-size:13px">
						                    总充值: <b class="text-warning">¥{$all_money}</b>
						                </span>
						            </div>
						            <div style="font-size:14px" class="text-muted">
						                未提现: <b class="text-warning">¥{$no_jiesuan_money}</b>,
						                提现中: <b class="text-warning">¥{$jiesuan_now}</b>
						                已打款: <b class="text-warning">¥{$jiesuan_end}</b>
						            </div>
						        </div>
						    </div>
						    <div class="col-md-6">
						        <div class="well">
						            <b>未申请提现余额</b>
						            <div class="text-primary" style="font-size:32px;margin:5px 0">
						                ¥{$no_jiesuan_money}
						                <a href="{:U('ProxyNovel/addjiesuan')}" class="btn btn-sm btn-primary" disabled>申请提现</a>
						            </div>
						            <div style="font-size:14px;" class="text-muted">
						                申请提现总额: <b class="text-warning">¥{$all_jiesuan_money}</b>,
						                已打款: <b class="text-warning">¥{$jiesuan_end}</b>,
						                待打款: <b class="text-warning">¥{$jiesuan_now}</b>
						            </div>
						        </div>
						    </div>
					    </div>

                        <ul class="nav nav-tabs">
						    <li class="<if condition="$status eq 'pending'">active</if>">
						        <a href="{:U('ProxyNovel/myjiesuan',['status'=>'pending'])}">未提现</a>
						    </li>
						    <li class="<if condition="$status eq 'withdrawing'">active</if>">
						        <a href="{:U('ProxyNovel/myjiesuan',['status'=>'withdrawing'])}">提现中</a>
						    </li>
						    <li class="<if condition="$status eq 'paid'">active</if>">
						        <a href="{:U('ProxyNovel/myjiesuan',['status'=>'paid'])}">已打款</a>
						    </li>
						</ul>
						
						<table class="table table-striped table-bordered table-hover responsive">
						    <thead>
						    <tr>
						        <td>
						            日期
						        </td>
						        <td class="text-center">
						            帐单金额
						        </td>
						        <td class="text-center">
						            佣金比例
						        </td>
						        <td>
						            状态
						        </td>
						    </tr>
						    </thead>
						    <tbody>
						    	<if condition="$list eq 0">
							        <tr>
							            <td class="text-center" colspan="100">没有记录</td>
							        </tr>
							    <else />
							    	<foreach name="list" item="vo">
							    		<tr>
							            	<td>{$vo.jiesuan_date}</td>
							            	<td>￥{$vo.money}</td>
							            	<td>{$vo.scale}</td>
							            	<td>
							            		<if condition="$vo.status eq 1"><a class="btn btn-xs btn-withdrawing" href="#">提现中 </a></if>
							            		<if condition="$vo.status eq 2"><a class="btn btn-xs btn-paid" href="#">已打款 </a></if>
							            	</td>
							        	</tr>
							    	</foreach>
						        </if>
						    </tbody>
						</table>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
</body>
</html>
